package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.entity.product.Category;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @Author: Shylo Sun
 * @Project: spzx-parent
 * @Date: 2023/11/16 23:04
 */
public interface CategoryService {
    /**
     * 列表查询
     *
     * @param parentId
     * @return
     */
    List<Category> findByParentId(Long parentId);

    /**
     * 数据导出
     *
     * @param response
     */
    void exportData(HttpServletResponse response);

    /**
     * 数据导入
     *
     * @param file
     */
    void importData(MultipartFile file);
}
